package com.zero.clinic.service.impl;

import com.zero.clinic.mapper.JobMapper;
import com.zero.clinic.pojo.Job;
import com.zero.clinic.pojo.JobExample;
import com.zero.clinic.service.JobService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class JobServiceImpl implements JobService {

    @Resource
    private JobMapper jobMapper;

    @Override
    public List<Job> selectByExample(JobExample example) {
        return jobMapper.selectByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Long jobId) {
        return jobMapper.deleteByPrimaryKey(jobId);
    }

    @Override
    public int insert(Job record) {
        return jobMapper.insert(record);
    }

    @Override
    public int insertSelective(Job record) {
        return jobMapper.insertSelective(record);
    }

    @Override
    public Job selectByPrimaryKey(Long jobId) {
        return jobMapper.selectByPrimaryKey(jobId);
    }

    @Override
    public int updateByPrimaryKeySelective(Job record) {
        return jobMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int deleteByIds(String[] jobIds) {
        return jobMapper.deleteByIds(jobIds);
    }
}
